chore(changeset): mcp-server tools split#40
Merged
Conversation
added 2 commits
April 24, 2026 11:27
`apps/mcp-server/src/server.ts` was ~874 lines of sequential
`server.tool(...)` calls — hard to review in a PR, worse to diff. Split
the 23 tool registrations into eight focused modules under `tools/`,
each exporting `register(server, ctx)`. `buildServer` is now a
~20-line registration list that preserves the original registration
order so existing in-memory MCP-client tests and snapshot fixtures keep
passing.
New files:
tools/context.ts — `ToolContext` (store, settings, resolveEmbedder)
tools/shared.ts — hivemind-context helpers + types
tools/heartbeat.ts — active-session heartbeat wrapper
tools/search.ts — search, timeline, get_observations, list_sessions
tools/hivemind.ts — hivemind, hivemind_context
tools/task.ts — task_list, task_timeline, task_updates_since,
task_post, task_claim_file
tools/handoff.ts — task_hand_off, task_accept_handoff,
task_decline_handoff
tools/proposal.ts — task_propose, task_reinforce
tools/profile.ts — agent_upsert_profile, agent_get_profile
tools/wake.ts — task_wake, task_ack_wake, task_cancel_wake,
attention_inbox, task_foraging_report
No tool-behavior change. All 17 mcp-server tests (InMemory MCP client +
task-thread suites) pass unchanged; full workspace suite 206/206 green.
Document the internal-only refactor that moved the 23 MCP tool registrations into per-group modules. No public surface change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated by gx branch finish (PR flow).